<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head profile="http://gmpg.org/xfn/11">
		<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
		<?php include('includes/seo.php'); ?>
		<?php if (get_option('swt_alt_stylesheet')==''):?>
		<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/style.css?ver=1.51" />
		<?php endif;?>
		<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/zzm-newsProvider.css?ver=1.51" />
		<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/r-sidebar.css?ver=1.51" />
		
		<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/header.css?ver=1.0" />
		
		<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/single.css?ver=1.0" />
	
		<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
		<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
		<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
		<link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/images/favicon.ico" type="image/x-icon" />
		<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.min.js"></script>
		<?php wp_head(); ?>
		<?php if ( is_singular() ){ ?>
			<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/comments-ajax.js"></script>
			<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/realgravatar.js"></script>
		<?php } ?>
		<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/hoveraccordion.js"></script>
		<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/weisay.js"></script>
		<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/header.js"></script>
		<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/r-hot.js"></script>
		<?php include('includes/lazyload.php'); ?>
	</head>
<body>
	<div id="header">
		<div class="header_top_parent">
			<div class="header_top" id="header_top">
				<div class="wrap">
					<div class="topLogo lfloat">
						<a href="<?php bloginfo('siteurl'); ?>">什么值得买</a>
					</div>
					<div class="loginIn">
						<?php if (is_user_logged_in()) { ?>
							<div class="login_div">
								<span class="memberColor">
									<?php 
										global $user_login; 
										get_currentuserinfo(); 
										echo $user_login ?> &nbsp;
									 欢迎您！&nbsp;
								</span>
								<a href="<?php echo wp_logout_url(); ?>">
									<span>注销</span>
								</a>
							</div>
						<?php }?>
					</div>
					<div class="clear"></div>
				</div>
			</div>
		</div>
		<div class="wrap">
			<div class="logo">
				<a href="<?php bloginfo('siteurl'); ?>">高性价比产品网购推荐，值得您经常来看看</a>
			</div>
			<div class="clear"></div>
			<div class="navBox" id="navbar">
				<div class="nav">
					<ul>
						<li class="home topMenu">
							<a class="linkMenu currentMenu" href="<?php bloginfo('siteurl'); ?>" default="current">首页</a>
						</li>
						<li class="smzdmNav2 topMenu">
							<a class="linkMenu" href="javascript:void(0);" default="">特色推荐</a>
							<?php wp_nav_menu( array('menu' => '特色推荐') ); ?>
						</li>
						<li class="smzdmNav3 topMenu">
							<a class="linkMenu" href="javascript:void(0);" default="">商城活动</a>
							<?php wp_nav_menu( array('menu' => '商城活动') ); ?>
						</li>
						<li class="smzdmNav4 topMenu">
							<a class="linkMenu" href="javascript:void(0);" default="">商家导航</a>
							<?php wp_nav_menu( array('menu' => '商家导航') ); ?>
						</li>
						<li class="smzdmNav5 topMenu">
							<a class="linkMenu" href="javascript:void(0);">其他</a>
							<?php wp_nav_menu( array('menu' => '其他') ); ?>
						</li>
					</ul>
	
					<form id="searchform" method="get" class="search" action="<?php bloginfo('home'); ?>">
						<input type="text" value="<?php the_search_query(); ?>" name="s" id="s" size="10" class="inpu1" />
						<input class="inpu2" type="submit" name="" value="" />
					</form>
				</div>
	
				<div class="clear"></div>
			</div>
		</div>
	</div>
	
	<?php 
		add_filter( 'wp_nav_menu_objects', 'add_menu_parent_class' );
		function add_menu_parent_class( $items ) {
		
			$parents = array();
			foreach ( $items as $item ) {
				if ( $item->menu_item_parent && $item->menu_item_parent > 0 ) {
					$parents[] = $item->menu_item_parent;
				}
			}
		
			foreach ( $items as $item ) {
				if ( in_array( $item->ID, $parents ) ) {
					$item->classes[] = 'hasChildren';
				}
			}
		
			return $items;
		}
	?>
	
	<div class="leftTjlbBox" id="left_box">
		<div class="leftTjlbTitle">
			<a href="#">推荐类别</a>
		</div>
		<?php wp_nav_menu( array('menu' => '商品类别', 'container' => '') ); ?>
	</div>
	
